package java_常用api;

public class API_4_基本数据类型5练习 {
    public static void main(String[] args) {
        String x = "91 27 46 38 50";
        //获取 字符     split 空格分隔字符
        String[] x_list = x.split(" ");
//        System.out.println(x_list[0]);
        // 变成int  放入int_list
        int[]  int_list = new int[x_list.length];
        for (int i = 0; i<x_list.length;i++){
            int shu = Integer.valueOf(x_list[i]);
            int_list[i] = shu;
            System.out.println(int_list[i]);
        }
    }
}
